<div class="user-detail-wrap">
	<div class="user-detail-head">
		<span class="userName" ng-bind="user.userName">userName</span>

		<span class="login-time">最后登陆时间：</span>
		<span class="login-time" ng-bind="user.lastLoginTime|date:'yyyy-MM-dd hh:mm:ss'">2016/02/23</span>
	</div>

	<div class="user-column">
		<div class="detail-columns">
			<div class="detail-column-item pointer on" ng-class="{on:tabNow=='env'}" ng-click="switchTab('env')">应用环境</div><div class="detail-column-item pointer" ng-class="{on:tabNow=='service'}" ng-click="switchTab('service')">服务</div><div class="detail-column-item pointer" ng-class="{on:tabNow=='log'}" ng-click="switchTab('log')">操作日志</div>
		</div>
		<div class="detail-stage">
			<div class="env-list clearfix" ng-show="tabNow == 'env'">
				<div class="env-item" ng-repeat="env in user.envList">
					<p class="env-name-wrap"><span class="env-name" ng-bind="env.envname"></span><span class="app-name" ng-bind="env.appName|bracket"></span></p>
					<div class="env-info-list">
						<div class="env-info">
							<p class="env-title">运行时:</p>
							<div class="env-value"><span ng-bind="env.sdk"></span> <span ng-show="!!env.runtime">On</span>  <span ng-bind="env.runtime"></span></div>
						</div>
						<div class="env-info">
							<p class="env-title">Ram:</p>
							<div class="env-value" ng-bind="env.memory|bitConvert"></div>
						</div>
						<div class="env-info">
							<p class="env-title">实例数:</p>
							<div class="env-value" ng-bind="env.instance"></div>
						</div>
						<div class="env-info">
							<p class="env-title">ssl:</p>
							<div class="env-value" ng-bind="env.ssl|sslFilter"></div>
						</div>
						<div class="env-info">
							<p class="env-title">源码:</p>
							<div class="env-value" ng-bind="env.sourcecode"></div>
						</div>
						<div class="env-info">
							<p class="env-title">域名:</p>
							<div class="env-value" ng-bind="env.domain"></div>
						</div>
						<div class="env-info">
							<p class="env-title left">服务:</p>
							<div class="env-value">
								<img ng-src="{{ser.img}}" ng-repeat="ser in env.service" class="env-service-img" title="{{ser.name}}" />
							</div>
						</div>
						<div class="env-info">
							<p class="env-title">状态:</p>
							<div class="env-value" ng-bind="env.status|appFilter"></div>
						</div>
						<div class="env-info">
							<p class="env-title">到期时间:</p>
							<div class="env-value" ng-bind="env.endTime|date:'yyyy-MM-dd'"></div>
						</div>
					</div>
					<div class="env-action-list" ng-class="{'loading-blank':env.loading}" ng-show="!!env.appName">
						<a class="env-action-item pointer" ng-click="appStart(env)">启动</a><a class="env-action-item pointer" ng-click="appStop(env)">停止</a><a class="env-action-item pointer" ng-click="appRestart(env)">重启</a>
					</div>
				</div>
			</div>
			<div class="service-list" ng-show="tabNow == 'service'">
				<div class="table">
					<div class="table-head">
						<div class="table-cell left" style="width:15%">服务名称</div>
						<div class="table-cell left" style="width:15%">关联应用</div>
						<div class="table-cell left" style="width:15%">启用时间</div>
						<div class="table-cell left" style="width:25%">到期时间</div>
						<div class="table-cell left" style="width:30%">服务参数</div>
					</div>
					<div class="table-content">
						<div class="table-row" ng-repeat="service in user.service">
							<div class="table-cell left" style="width:15%" ng-bind="service.name"></div>
							<div class="table-cell left" style="width:15%" ng-bind="service.envName"></div>
							<div class="table-cell left" style="width:15%" ng-bind="service.startTime|date:'yyyy-MM-dd'|empHint"></div>
							<div class="table-cell left" style="width:25%" ng-bind="service.endTime|date:'yyyy-MM-dd'"></div>
							<div class="table-cell left" style="width:30%" ng-bind="service.params"></div>
						</div>
					</div>
				</div>
			</div>

			<div class="operate-log" ng-show="tabNow == 'log'">

				<div class="table">
					<div class="table-head">
						<div class="table-cell left" style="width:30%">URL</div>
						<div class="table-cell left" style="width:45%">参数</div>
						<div class="table-cell left" style="width:25%">时间</div>
					</div>
					<div class="table-content">
						<div class="table-row" ng-repeat="log in user.log">
							<div class="table-cell left" style="width:30%" ng-bind="log.url" title="{{log.url}}"></div>
							<div class="table-cell left" style="width:45%" ng-bind="log.params" title="{{log.param}}"></div>
							<div class="table-cell left" style="width:25%" ng-bind="log.time|date:'yyyy-MM-dd'"></div>
						</div>
					</div>
				</div>

			</div>
			
		</div>
	</div>
</div>